package StructuralPattern.Proxy.DynamicProxy;

/**
 * @Classname : ConcreteGamePlayer
 * @Description : 具体角色
 * @Author : chentianyu
 * @Date 2023/2/11 22:41
 */


public class ConcreteGamePlayer implements GamePlayer {

    private String user;

    ConcreteGamePlayer(String user) {
        this.user = user;
    }

    @Override
    public void login() {
        System.out.println("玩家 " + this.user + " 登录成功！");
    }

    @Override
    public void killBoss() {
        System.out.println("玩家 " + this.user + " 在打怪！");
    }

    @Override
    public void upgrade() {
        System.out.println("玩家 " + this.user + " 又升了一级！");
    }
}
